<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>用户登录</title>
    <link rel="stylesheet" type="text/css" th:href="@{/styles.css}">
</head>
<body>
<div class="container">
    <h2>登录</h2>
    <div class="error-message" th:if="${param.error}">
        用户名或密码错误！
    </div>
    <form action="/doLogin" method="post">
        <div class="form-group">
            <label for="username">用户名:</label>
            <input type="text" id="username" name="username" required>
        </div>
        <div class="form-group">
            <label for="password">密码:</label>
            <input type="password" id="password" name="password" required>
        </div>
        <button type="submit">登录</button>
    </form>
    <div class="links-container">
        <a href="/register">立即注册</a>
        <a href="/queryUser">查询用户</a>
        <a href="/changePassword">修改密码</a>
    </div>
</div>
</body>
</html>